package com.wu.Backstage.service;

import com.wu.Backstage.entity.ClickRecordEntity;
import com.wu.Backstage.entity.CommodityEntity;
import com.wu.Backstage.entity.Po.ClickRecord;
import com.wu.Backstage.entity.Po.UserRecord;
import com.wu.Backstage.entity.Po.UserSearch;
import com.wu.Backstage.entity.UserRecordEntity;
import com.wu.Backstage.entity.UserSearchEntity;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author wujian
 * @version 1.0
 * @date 2022/4/6 0006 15:24
 */
@Service
public class comprehensiveService {

    @Resource
    private ClickRecordEntity clickRecordEntity;

    @Resource
    private UserSearchEntity userSearchEntity;

    @Resource
    private UserRecordEntity userRecordEntity;


    /**添加数据**/
    public UserSearch InUserSearch(UserSearch user)
    {
        return userSearchEntity.save(user);
    }



    public UserRecord InUserRecord(UserRecord user)
    {
        return userRecordEntity.save(user);
    }


    public ClickRecord InClickRecord(ClickRecord user)
    {
        return clickRecordEntity.save(user);
    }




}
